<template>
  <div class="title">
    <div class="text">{{ text }}</div>
  </div>
</template>

<script>
export default {
  name: 'box-title',
  props: {
    text: {
      type: String,
      default: ''
    },
  },
}
</script>

<style scoped lang="less">
.title {
  margin: auto;
  display: block;
  width: min-content;

  .text {
    white-space: nowrap;
    width: min-content;
    font-size: 20px;
    height: 20px;
    line-height: 20px;
    color: rgb(195, 195, 226);
    margin-bottom: 7px;
    margin-top: 35px;
    font-weight: 600;
  }

  &::after {
    content: '';
    display: block;
    margin: 0 auto;
    height: 4px;
    width: 48px;
    background-color: rgb(195, 195, 226);
  }
}
</style>